<form class="layui-form">
    <blockquote class="layui-elem-quote">
        MySQL 序列生成器,可以用于流水号、订单号生成等场景
    </blockquote>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-lg6">
                <div class="layui-card">
                    <div class="layui-card-header">
                        当前序列
                    </div>
                    <div class="layui-card-body">
                        <input type="text" class="layui-text layui-form-mid" id="currval" readonly/>
                        <button type="button" class="layui-btn" lay-event="currval">
                            查询当前序列
                        </button>
                    </div>
                </div>
            </div>
            <div class="layui-col-lg6">
                <div class="layui-card">
                    <div class="layui-card-header">
                        下一个序列
                    </div>
                    <div class="layui-card-body">
                        <input type="text" class="layui-text layui-form-mid" id="nextval" readonly/>
                        <button type="button" class="layui-btn" lay-event="nextval">
                            生成下一个序列
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row layui-col-space15">
            <div class="layui-col-lg6">
                <div class="layui-card">
                    <div class="layui-card-header">
                        重置序列值
                    </div>
                    <div class="layui-card-body">
                        <input type="text" class="layui-text layui-form-mid" id="setval" readonly/>
                        <button type="button" class="layui-btn" lay-event="setval">
                            重置序列值
                        </button>
                    </div>
                </div>
            </div>
            <div class="layui-col-lg6">
                <div class="layui-card">
                    <div class="layui-card-header">
                        模拟订单号生成
                    </div>
                    <div class="layui-card-body">
                        <input type="text" class="layui-text layui-form-mid" id="orderId" readonly/>
                        <p class="layui-text layui-form-mid">（注意后面6位是有序递增的）</p>
                        <button type="button" class="layui-btn" lay-event="genOrderId">
                            生成订单号

                        </button>

                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</form>
<script type="text/javascript" src="/assets/iartisan/js/seq/seq_index.js?${staticVerison!'1'}"></script>